/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
 * Description: task并行下发，创建virtual dispatcher
 * Author: zhaoandong
 * Create: 2023-02-08
 */
 
#ifndef HCCL_DISPATCHER_VIRTUAL_PUB_H
#define HCCL_DISPATCHER_VIRTUAL_PUB_H
 
#include "dispatcher_pub.h"
 
namespace hccl {
class DispatcherVirtural : public DispatcherPub {
public:
    explicit DispatcherVirtural(const s32 deviceLogicId);
    ~DispatcherVirtural() override;
    HcclResult Init() override;
    HcclResult SignalRecord(HcclRtNotify signal, hccl::Stream &stream, u32 userRank, u64 offset = INVALID_U64,
        s32 stage = INVALID_VALUE_STAGE, bool inchip = false, u64 signalAddr = INVALID_U64,
        u32 notifyId = INVALID_UINT) override;
    HcclResult SignalWait(HcclRtNotify signal, hccl::Stream &stream, u32 userRank, u32 remoteUserRank,
        s32 stage = INVALID_VALUE_STAGE, bool inchip = false, u32 notifyId = INVALID_UINT,
        u32 timeOut = NOTIFY_INVALID_WAIT_TIME) override;
    HcclResult MemcpyAsync(hccl::DeviceMem &dst, const hccl::DeviceMem &src, hccl::Stream &stream,
        u32 remoteUserRank = INVALID_VALUE_RANKID, hccl::LinkType inLinkType = hccl::LinkType::LINK_ONCHIP) override;
 
private:
};
} // namespace hccl
#endif // HCCL_DISPATCHER_VIRTUAL_PUB_H
